<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">

<title> 提交记录 2576 - Judge Duck Online </title>

<link rel="icon" type="image/png" href="/images/judgeduck-logo-small.png" />

<script src="/libs/js/jquery-3.2.1.min.js"></script>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="/libs/css/bootstrap.min.css" />

<!-- Latest compiled and minified JavaScript -->
<script src="/libs/js/bootstrap.min.js"></script>

<link rel="stylesheet" type="text/css" href="/css/main.css" />
<link rel="stylesheet" href="/css/non-responsive.css" type="text/css" />

<script src="/js/md5.js"></script>
<script src="/js/judgeduck.js"></script>

<script type="text/x-mathjax-config">
	MathJax.Hub.Config({
		showProcessingMessages: false,
		tex2jax: {
			inlineMath: [["$", "$"], ["\\\\(", "\\\\)"]],
			processEscapes:true
		},
		menuSettings: {
			zoom: "Hover"
		}
	});
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.1/MathJax.js?config=TeX-AMS_HTML"></script>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>

</head>

<body onload="">

<!-- Fixed navbar -->
<nav class="navbar navbar-default" role="navigation" style="background-color: #eeeeee">
	<div class="container">
		<div class="navbar-header">
			<div class="navbar-brand">
				<a href="/">
					<img src="/images/judgeduck-logo.png" width="40px" height="40px" style="margin:-10px" />
				</a>
			</div>
			<font class="navbar-brand">
				Judge Duck Online
			</font>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="nav-item">
					<a class="nav-link" href="/index/index.html"> 首页 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/problems/index.html"> 题目列表 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/submissions/index.html"> 提交记录 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/blogs/index.html"> 博客 </a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/faq/index.html"> FAQ </a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="nav-item">
					<a href="/status/index.html"> Server Status </a>
<a href="http://www.iis7.com" style="display:inline-block;background-color:;color:#fff;padding:2px 5px;font-family:arial;font-size:12px;font-weight:bold;" class="826ddd1d8f114a2fa039c50482103c0f" target="_blank">iis7站长之家</a>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="/user/register/index.html"> 注册 </a>
				</li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>




<div id="main_div" class="container" style="padding-left: 25px; padding-right: 25px">
	<h2> 提交记录 2576 </h2>
	<hr />
	
	<div class="row">
		<div class="col-xs-12">
			<table class="table table-bordered">
				<tr>
					<th class="col-xs-2"> 用户 </th>
					<th class="col-xs-3"> 题目 </th>
					<th class="col-xs-2"> 状态 </th>
					<th class="col-xs-1"> 得分 </th>
					<th class="col-xs-1"> 用时 </th>
					<th class="col-xs-1"> 内存 </th>
					<th class="col-xs-1"> 语言 </th>
					<th class="col-xs-1"> 代码长度 </th>
				</tr>
				<tr>
					<td style='font-size:13px'> <a href='/user/profile/AwD/index.html'> AwD </a> </td>
<td> <a href='/problem/1002/index.html'> 1002. 测测你的多项式乘法 </a> </td>
<td> Accepted </td>
<td> 100 </td>
<td style='font-size:13px'> 686.344 ms </td>
<td style='font-size:13px'> 119 MB + 720 KB </td>
<td style='font-size:13px'> C++ </td>
<td style='font-size:13px'> 2.72 KB </td>
				</tr>
			</table>
			<table class="table table-bordered">
				<tr>
					<th class="col-xs-6"> 提交时间 </th>
					<th class="col-xs-6"> 评测时间 </th>
				</tr>
				<tr>
					<td style='font-size:13px'> 2018-06-27 21:28:06 </td>
<td style='font-size:13px'> 2019-01-18 22:39:03 </td>
				</tr>
			</table>
			<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/styles/tomorrow.min.css">
			<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/highlight.min.js"></script>
			<script>hljs.initHighlightingOnLoad();</script>
			<div class="row">
				<label for="code"> 代码 </label>
				<pre style="background-color:white"><code class="cpp">#include &lt;bits/stdc++.h&gt;
using namespace std;

const int N = 3000000;
struct cpx {double i, j;} w[N];
cpx operator + (cpx a, cpx b) {return (cpx){a.i + b.i, a.j + b.j};}
cpx operator - (cpx a, cpx b) {return (cpx){a.i - b.i, a.j - b.j};}
cpx operator * (cpx a, cpx b) {return (cpx){a.i * b.i - a.j * b.j, a.i * b.j + a.j * b.i};}
cpx operator / (cpx a, cpx b) {double d = b.i * b.i + b.j * b.j; return (cpx){(a.i * b.i + a.j * b.j) / d, (a.j * b.i - a.i * b.j) / d};}
cpx operator ! (cpx a) {return (cpx){a.i, -a.j};}
double pi = acos(-1);
void FFT(cpx A[], int n, int f)
{
    for (int i = 1, j = (n &gt;&gt; 1); i &lt; n; ++ i)
    {
        if (i &lt; j) swap(A[i], A[j]); int k;
        for (k = (n &gt;&gt; 1); j &amp; k; j ^= k, k &gt;&gt;= 1); j ^= k;
    }
    for (int i = 2; i &lt;= n; i &lt;&lt;= 1)
    {
        int d = n / i * f;
        for (int j = 0; j &lt; n; j += i)
        {
            int p = (f &gt; 0 ? 0 : n);
            for (int k = j; k &lt; j + (i &gt;&gt; 1); ++ k)
            {
                cpx u = A[k], v = A[k + (i &gt;&gt; 1)] * w[p];
                A[k] = u + v; A[k + (i &gt;&gt; 1)] = u - v; p += d;
            }
        }
    }
    if (f &lt; 0) for (int i = 0; i &lt; n; ++ i) A[i] = A[i] / (cpx){(double)n, 0};
}
void poly_multiply(unsigned *A, int n, unsigned *B, int m, unsigned *C)
{
    static cpx tmp0[N], tmp1[N];
    static cpx tmp00[N], tmp01[N], tmp10[N], tmp11[N];

    int nn = 1; while (nn &lt;= max(n, m)) nn &lt;&lt;= 1;
    w[0] = (cpx){1, 0}; w[1] = (cpx){cos(2 * pi / nn), sin(2 * pi / nn)};
    for (int i = 2; i &lt;= nn; ++ i) w[i] = w[i - 1] * w[1];

    for (int i = 0; i &lt; nn; ++ i) tmp0[i] = (cpx){0, 0};
    for (int i = 0; i &lt;= n; i += 2) tmp0[i / 2].i = A[i];
    for (int i = 1; i &lt;= n; i += 2) tmp0[i / 2].j = A[i];
    FFT(tmp0, nn, 1);
    for (int i = 0; i &lt; nn; ++ i) tmp00[i] = (tmp0[i] + !(tmp0[i == 0 ? 0 : nn - i])) / (cpx){2, 0};
    for (int i = 0; i &lt; nn; ++ i) tmp01[i] = (tmp0[i] - !(tmp0[i == 0 ? 0 : nn - i])) / (cpx){2, 0} * (cpx){0, -1};

    for (int i = 0; i &lt; nn; ++ i) tmp1[i] = (cpx){0, 0};
    for (int i = 0; i &lt;= m; i += 2) tmp1[i / 2].i = B[i];
    for (int i = 1; i &lt;= m; i += 2) tmp1[i / 2].j = B[i];
    FFT(tmp1, nn, 1);
    for (int i = 0; i &lt; nn; ++ i) tmp10[i] = (tmp1[i] + !(tmp1[i == 0 ? 0 : nn - i])) / (cpx){2, 0};
    for (int i = 0; i &lt; nn; ++ i) tmp11[i] = (tmp1[i] - !(tmp1[i == 0 ? 0 : nn - i])) / (cpx){2, 0} * (cpx){0, -1};

    for (int i = 0; i &lt; nn; ++ i) tmp0[i] = tmp00[i] * tmp10[i] + tmp01[i] * tmp11[i] * w[i];
    for (int i = 0; i &lt; nn; ++ i) tmp1[i] = tmp00[i] * tmp11[i] + tmp01[i] * tmp10[i];

    for (int i = 0; i &lt; nn; ++ i) tmp0[i] = tmp0[i] + tmp1[i] / (cpx){0, -1};
    FFT(tmp0, nn, -1);
    for (int i = 0; i &lt;= n + m; i += 2)
    {
        C[i] = (tmp0[i / 2].i + 0.5);
        C[i + 1] = (tmp0[i / 2].j + 0.5);
    }
}
</code></pre>
				<br />
				
				<label for="result"> 评测结果 </label><div class="row"><div class="col-xs-12"><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Compilation</b></td><td class="col-xs-2" style="vertical-align:middle">N/A</td><td class="col-xs-2" style="vertical-align:middle">N/A</td><td class="col-xs-2" style="vertical-align:middle">Compile OK</td><td class="col-xs-2" style="vertical-align:middle">Score: N/A</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_1" aria-expanded="false" aria-controls="detail_1">显示更多</a></td></tr></table></div><div class="collapse" id="detail_1"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>Compiling...
Compile success!
</textarea></div></div><div class="alert alert-success"><div class="text-center row"><table class="table table-borderless" style="margin:0px"><tr><td class="col-xs-2" style="vertical-align:middle;padding-left:20px;padding-right:20px"><b>Testcase #1</b></td><td class="col-xs-2" style="vertical-align:middle">686.344 ms</td><td class="col-xs-2" style="vertical-align:middle">119 MB + 720 KB</td><td class="col-xs-2" style="vertical-align:middle">Accepted</td><td class="col-xs-2" style="vertical-align:middle">Score: 100</td><td class="col-xs-2" style="vertical-align:middle"><a data-toggle="collapse" href="#detail_2" aria-expanded="false" aria-controls="detail_2">显示更多</a></td></tr></table></div><div class="collapse" id="detail_2"><br /><textarea class="form-control" style="background-color: white" rows="8" readonly>verdict = Run Finished
time_ms = 686.344200
mem_kb = 122576
Correct Answer
</textarea></div></div></div></div>
			</div>
		</div>
	</div>

	<hr />
	
	<div class="row">
		<p style="text-align: center; color: #888">
			Judge Duck Online | 评测鸭在线 <br />
			Server Time: 2019-08-02 17:12:37 | Loaded in 1 ms | <a href="/status/index.html"> Server Status </a> <br />
			个人娱乐项目，仅供学习交流使用
		</p>
	</div>
</div>

</body>

</html>
